<?php

namespace App\Http\Controllers\Commit;

use App\Repository\Commit\PositionRepository;
use App\Repository\Commit\RoleRepository;
use App\Repository\SystemRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller as BaseController;
use App\Models\System as model;

/**
 * @OA\Tag(
 *     name="后台菜单模块",
 *     description="菜单模块",
 * )
 */
class GetConfigController extends BaseController
{
  public function __construct(model $model)
  {
    $this->repoist = $model;
  }
  public function store(Request $request)
  {
  }
  public function index(Request $request)
  {
    $res = $this->repoist->where(['name' => 'appH5Url'])->first();
    $res['userId'] = $request->user->user_name;
    return $this->returnMsg(200, '查询连接成功', $res);
  }
}
